﻿<UserControl x:Class="Skauler.Views.EmployeeDetails"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="600">
    <UserControl.Resources>
        <Style TargetType="{x:Type Label }" >
            <Setter Property="Margin" Value="5"></Setter>
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Margin" Value="5"></Setter>
        </Style>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="Margin" Value="5"></Setter>
        </Style>
        <Style TargetType="{x:Type RadioButton}">
            <Setter Property="Margin" Value="5"></Setter>
        </Style>

    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="175*"/>
            <ColumnDefinition Width="537*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="33*"/>
            <RowDefinition Height="31*"/>
            <RowDefinition Height="31*"/>
            <RowDefinition Height="37*"/>
            <RowDefinition Height="36*"/>
            <RowDefinition Height="36*"/>
            <RowDefinition Height="36*"/>
            <RowDefinition Height="36*"/>
            <RowDefinition Height="35*"/>
            <RowDefinition Height="35*"/>
            <RowDefinition Height="38*"/>
            <RowDefinition Height="38*"/>
            <RowDefinition Height="35*"/>
            <RowDefinition Height="39*"/>
            <RowDefinition Height="37*"/>
            <RowDefinition Height="67*"/>
        </Grid.RowDefinitions>

        <Label Content="Employee Number" />
        <Label Content="Joining date"       Grid.Row="1"/>
        <Label Content="First Name*"        Grid.Row="2"/>
        <Label Content="Middle Name"        Grid.Row="3"/>
        <Label Content="Last Name"          Grid.Row="4"/>
        <Label Content="Email"              Grid.Row="5"/>
        <Label Content="Gender"             Grid.Row="6"/>
        <Label Content="Date of Birth*"     Grid.Row="7"/>
        <Label Content="Department*"        Grid.Row="8"/>
        <Label Content="Category*"          Grid.Row="9"/>
        <Label Content="Position*"         Grid.Row="10"/>
        <Label Content="Job Title"         Grid.Row="11"/>
        <Label Content="Qualification"     Grid.Row="12"/>
        <Label Content="Total Experience"  Grid.Row="13"/>
        <Label Content="Status"            Grid.Row="14"/>

        <TextBox Grid.Column="1" Text="{Binding Empno}" Name="tbeno" />

        <DatePicker Grid.Column="1" SelectedDate="{Binding Joindate}" Grid.Row="1" Name="jdt" Margin="5,0"/>

        <TextBox Grid.Column="1" Grid.Row="2" Name="tbfn" Text="{Binding Fname}"/>
        <TextBox Grid.Column="1" Grid.Row="3" Name="tbmn" Text="{Binding Mname}"/>
        <TextBox Grid.Column="1" Grid.Row="4" Name="tbln" Text="{Binding Lname}"/>
        <TextBox Grid.Column="1" Grid.Row="5" Name="tbem" Text="{Binding Email}"/> 

        <RadioButton IsChecked="{Binding Gender}" Name="mb" GroupName="_gender" Content="MALE" Grid.Column="1" HorizontalAlignment="Left" Margin="35,10,0,0" Grid.Row="6" VerticalAlignment="Top" Height="15" Width="85"     />
        <RadioButton IsChecked="{Binding Gender}" Name="fb" GroupName="_gender" Content="FEMALE" Grid.Column="1" HorizontalAlignment="Left" Margin="218,10,0,0" Grid.Row="6" VerticalAlignment="Top" Height="15" Width="85"  />
        <RadioButton IsChecked="{Binding Gender}" Name="ob" GroupName="_gender" Content="OTHER" Grid.Column="1" HorizontalAlignment="Left" Margin="363,13,0,0" Grid.Row="6" VerticalAlignment="Top" Height="15" Width="85" />

        <DatePicker Grid.Column="1" SelectedDate="{Binding Dobdt}" Grid.Row="7" Name="dob" Margin="5,0"/>

        <ComboBox Grid.Column="1" Grid.Row="8" Name="cbdept" ItemsSource="{Binding Dept}" SelectedItem="{Binding Department}" Text="Select Department">
        </ComboBox>

        <ComboBox Grid.Column="1" Grid.Row="9" Name="cbcategory" ItemsSource="{Binding Categ}" SelectedItem="{Binding Category}" Text="Select Category" FontFamily="Forte">
        </ComboBox>

        <ComboBox Grid.Column="1" Grid.Row="10" Name="cbposition" ItemsSource="{Binding Pos}" SelectedItem="{Binding Position}" Text="Select Position">
        </ComboBox>

        <ComboBox Grid.Column="1" Grid.Row="11" Name="cbjtitle" ItemsSource="{Binding Jobtit}" SelectedItem="{Binding Jobtitle}" Text="Select Title">
        </ComboBox>

        <ComboBox Grid.Column="1" Grid.Row="12" Name="cbqualification" ItemsSource="{Binding Quali}" SelectedItem="{Binding Qualification}">
        </ComboBox>


        <ComboBox Grid.Column="1" Grid.Row="13" Name="cbtexp" ItemsSource="{Binding Totexp}" SelectedItem="{Binding Totalexp}">
        </ComboBox>

        <RadioButton IsChecked="{Binding Status}" Name="sb" GroupName="_status" Content="SINGLE" Grid.Column="1" HorizontalAlignment="Left" Margin="35,10,0,0" Grid.Row="14" VerticalAlignment="Top"  Height="15" Width="61"/>
        <RadioButton IsChecked="{Binding Status}" Name="mab" GroupName="_status" Content="MARRIED" Grid.Column="1" HorizontalAlignment="Left" Margin="218,12,0,0" Grid.Row="14" VerticalAlignment="Top"  Height="15" Width="78"/>
        <RadioButton IsChecked="{Binding Status}" Name="db" GroupName="_status" Content="DIVORCEE" Grid.Column="1" HorizontalAlignment="Left" Margin="366,13,0,0" Grid.Row="14" VerticalAlignment="Top"  Height="15" Width="77"/>

        <!--<Button Content="Submit" Grid.Column="1" Click="Button_Click" HorizontalAlignment="Left" Margin="218,10,0,0" Grid.Row="15" VerticalAlignment="Top" Width="75" Height="51"/>-->


    </Grid>
</UserControl>
